package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.domain.Menu;

import java.util.List;

/**
 * @author Zhang_Han
 * @version 1.0
 * @date 2020/10/14 20:49
 */
public interface MenuDao {
    //分页条件查询;
    public Page<Menu> selectByCondition(String queryString);

    //查询全部;
    public List<Menu> findAll();

    //添加数据;
    public void add(Menu menu);

    //删除;
    public void deleteByid(Integer id);

    //根据ID查询;
    public Menu findByid(Integer id);

    //修改;
    public void update(Menu menu);

    List<Menu> getMenu(String name);
}
